import axios from 'axios'
import monitoring from '../common/js/monitoring'
export function Register(fullName,username, password,) {
  const data = {
    fullName,
    username,
    password
  }
  return axios.post('/api/Accounts', data)
    .then((res) => {
      let params = {fullName, username};
      monitoring.register(params);//todo Facebook Pixel & Google Analytic Code    register

      return Promise.resolve(res.data)
    })
    .catch((err) => {
      return Promise.reject(err.response)
    })
}

